package org.sbbs.base.searcher;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class SearchFilter {
	protected final Log log = LogFactory.getLog(getClass());
	private boolean isMultiSearch = true;

	public boolean isMultiSearch() {
		return isMultiSearch;
	}

	public void setMultiSearch(boolean isMultiSearch) {
		this.isMultiSearch = isMultiSearch;
	}

	private String groupOp;
	private List<SearchRule> rules = new ArrayList();
	private List<SearchFilter> groups = new ArrayList();

	public List<SearchFilter> getGroups() {
		return groups;
	}

	public void setGroups(List<SearchFilter> groups) {
		this.groups = groups;
	}

	public String getGroupOp() {
		return groupOp;
	}

	public void setGroupOp(String groupOp) {
		this.groupOp = groupOp;
	}

	public List<SearchRule> getRules() {
		return rules;
	}

	public void setRules(List<SearchRule> rules) {
		this.rules = rules;
	}

	public static SearchFilter BuildSearchFilter(HttpServletRequest req) {
		System.out.println("SearchFilter");
		return null;
	}
}
